<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <base href="<%=basePath%>">

  <title>My JSP 'index.jsp' starting page</title>
  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache">
  <meta http-equiv="expires" content="0">
  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  <meta http-equiv="description" content="This is my page">
  <!--
  <link rel="stylesheet" type="text/css" href="styles.css">
  -->
</head>

<body>
<table width="880" height="200" border="0" align="center">
  <tr>
    <td height="80" colspan="4" background="photo/header.jpg">
      <h2> Estore图书商城 </h2>
      <h3>快乐的购物天堂</h3>
    </td>
  </tr>
</table>

<table width="880" height="70" border="0" align="center">
  <tr>
    <th width="140" bgcolor="#0099FF" scope="col">
      <A href="Index.jsp">首页</A></th>
    <th width="140" bgcolor="#0099FF" scope="col">
      <A href="ProductInfo.jsp">商品分类</A></th>
    <th width="140" bgcolor="#0099FF" scope="col">
      <A href="AboutUs.jsp">关于我们</A></th>
    <th width="569" bgcolor="#FFFFFF" scope="col"><div align="left">用户未登录</div></th>
  </tr>
</table>


<table align="center">
  <tr>
    <td>
      <table width="500" height="100" border="0" >
        <tr>
          <td width="500" height="4" align="left" valign="top" scope="col">商品促销信息</td>
        </tr>
        <tr>
          <td width="500" height="100">
            <script language="javascript">
                setInterval(test,1000);
                var array=new Array();
                var index=0;
                var array= new Array("photo/screen1.jpg","photo/screen2.jpg","photo/screen3.jpg","photo/screen4.jpg","photo/screen5.jpg");
                function test()
                { var myimg=document.getElementById("imgs");
                    if(index==array.length-1)
                    { index=0; }else{ index++; }
                    myimg.src=array[index];
                }
            </script>
            <img id="imgs" src="photo/screen6.jpg"/>
          </td>
        </tr>

        <tr>
          <td width="500" height="4" align="left" valign="top" scope="col">
            <form action="zhankai" method="post">
              热卖商品销售中<br>
              <input type="submit" value="更多商品">

            </form></td>
        </tr>
      </table>
    </td>



    <td>
      <table width="240" height:300px; border="1" align:"center">
  <tr>
    <td width="240" height="25" align="center" valign="top" scope="col">
      导航菜单</td>
  <tr>
  <tr width="240" height="25" bgcolor="#FFFFFF" scope="col">
    <A href="Index.jsp">首页</A></tr>
  <tr width="240" height="25" bgcolor="#FFFFFF" scope="col">
    <A href="ProductInfo.jsp">添加商品</A></tr>
  <tr width="240" height="25" bgcolor="#FFFFFF" scope="col">
    <A href="AboutUs.jsp">查看购物车</A></tr>
  <tr width="240" height="25" bgcolor="#FFFFFF" scope="col">
    <A href="AboutUs.jsp">查看订单</A></tr>
  </tr>
</table>
</td>

</tr>
</table>

</body>
</html>
